package com.solution.common.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @描述: 基础实体类，包含各实体公用属性 .
 * @作者: WuShuicheng .
 * @创建时间: 2013-7-28,下午8:53:52 .
 * @版本: 1.0 .
 */
public class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	private Long id;

	/**
	 * 状态
	 */
	private Integer status;

	/**
	 * 是否删除  0 未删除  1 删除
	 */
	private Integer isDelete;

	/**
	 * 添加人
	 */
	private String creater;

	/**
	 * 添加时间
	 */
	private Date createTime;
	/**
	 * 修改人
	 */
	private String modifier;

	/**
	 * 修改时间
	 */
	private Date modifyTime;
	
	/** 
	 *版本号,用于乐观锁 
	 */
	private Integer version;
	
	/**
	 * Creates a new instance of BaseEntity.
	 *
	 */
	
	
	public BaseEntity() {
		super();
	}

	/**
	 * Creates a new instance of BaseEntity.
	 *
	 * @param id
	 * @param creater
	 * @param modifier
	 */
	public BaseEntity(Long id, String creater, String modifier) {
		super();
		this.id = id;
		this.creater = creater;
		this.modifier = modifier;
	}

	/**
	 * Creates a new instance of BaseEntity.
	 *
	 * @param id
	 * @param status
	 * @param isDelete
	 */
	public BaseEntity(Long id, Integer status, Integer isDelete) {
		super();
		this.id = id;
		this.status = status;
		this.isDelete = isDelete;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}	
}
